<?php
/**
 * Enter description here ...
 * @author Micou13630
 *
 */
class RichTextItem extends CanvasItem implements IRenderable {
	
	protected $controlGroups;
	protected $showTitle;
	
	protected $colSpan;
	protected $startRow;
	protected $endRow;
	
	/**
	 * Enter description here ...
	 * @param unknown_type $name
	 */
	public function RichTextItem($name, $border = "solid 1px #aaa") {
		parent::CanvasItem($name, Constant::EDITOR_TYPE_RICHTEXT);
		
		$this->canvasProperties = new ExpressionType("{border:\"".$border."\"}");
	}
	
	/**
	 * Implementation de object
	 * @see IRenderable::object()
	 */
	public function object() {
		return get_class($this);
	}

	/**
	 * Implementation de properties
	 * @see IRenderable::properties()
	 */
	public function properties() {
		return parent::getProp($this);
	}

	/**
	 * Implementation de scLog
	 * @see IRenderable::scLog()
	 */
	public function scLog() {
		ScCollectionLog::getInstance()->addSc(new ScLog($this->object(), get_object_vars($this)));
	}
	
	/**
	 * Implementation de render
	 * @see IScreen::render()
	 */
	public function render() {
		$this->scLog();
		return "{".$this->properties()."}";
	}
}
?>